package com.gitee.cashzhang27.test.boot.resilience4j.service;

import java.util.concurrent.CompletableFuture;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

/**
 * @author Cash Zhang
 * @version v1.0
 * @since 2019/11/26 15:26
 */
public interface BusinessService {

  String failure();

  String success();

  String successException();

  String ignore();

  String failureWithFallback();

  Flux<String> fluxFailure();

  Mono<String> monoSuccess();

  Mono<String> monoFailure();

  Flux<String> fluxSuccess();

  CompletableFuture<String> futureSuccess();

  CompletableFuture<String> futureFailure();
}